package com.ruoyi.tranShort.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人员对象 short_person
 * 
 * @author ruoyi
 * @date 2021-08-13
 */
public class ShortPerson extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 入伍时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入伍时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinUpDate;

    /** 警衔 */
    @Excel(name = "警衔")
    private Long policeRank;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private String nativePlace;

    /** 腕带设备id */
    @Excel(name = "腕带设备id")
    private Long wristbandDeviceId;

    /** 照片 */
    @Excel(name = "照片")
    private String picture;

    /** 班别 */
    @Excel(name = "班别")
    private Long classGradeId;
    /**
     * 班别名称
     */
    private String classGradeName;

    /** 座位 */
    @Excel(name = "座位")
    private String seat;

    /** 执行能力 */
    @Excel(name = "执行能力")
    private String executiveCapability;
    /**
     * 腕带设备
     */
    private ShortWristbandDervice shortWristbandDervice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }
    public void setJoinUpDate(Date joinUpDate) 
    {
        this.joinUpDate = joinUpDate;
    }

    public Date getJoinUpDate() 
    {
        return joinUpDate;
    }
    public void setPoliceRank(Long policeRank) 
    {
        this.policeRank = policeRank;
    }

    public Long getPoliceRank() 
    {
        return policeRank;
    }
    public void setNativePlace(String nativePlace) 
    {
        this.nativePlace = nativePlace;
    }

    public String getNativePlace() 
    {
        return nativePlace;
    }
    public void setWristbandDeviceId(Long wristbandDeviceId) 
    {
        this.wristbandDeviceId = wristbandDeviceId;
    }

    public Long getWristbandDeviceId() 
    {
        return wristbandDeviceId;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setClassGradeId(Long classGradeId) 
    {
        this.classGradeId = classGradeId;
    }

    public Long getClassGradeId() 
    {
        return classGradeId;
    }
    public void setSeat(String seat) 
    {
        this.seat = seat;
    }

    public String getSeat() 
    {
        return seat;
    }
    public void setExecutiveCapability(String executiveCapability) 
    {
        this.executiveCapability = executiveCapability;
    }

    public String getExecutiveCapability() 
    {
        return executiveCapability;
    }

    public ShortWristbandDervice getShortWristbandDervice() {
        return shortWristbandDervice;
    }

    public void setShortWristbandDervice(ShortWristbandDervice shortWristbandDervice) {
        this.shortWristbandDervice = shortWristbandDervice;
    }

    public String getClassGradeName() {
        return classGradeName;
    }

    public void setClassGradeName(String classGradeName) {
        this.classGradeName = classGradeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sex", getSex())
            .append("birthDate", getBirthDate())
            .append("joinUpDate", getJoinUpDate())
            .append("policeRank", getPoliceRank())
            .append("nativePlace", getNativePlace())
            .append("createTime", getCreateTime())
            .append("wristbandDeviceId", getWristbandDeviceId())
            .append("picture", getPicture())
            .append("classGradeId", getClassGradeId())
            .append("seat", getSeat())
            .append("executiveCapability", getExecutiveCapability())
            .toString();
    }
}
